package com.pmcc.core.entity.security;

import com.pmcc.core.entity.UUIDEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * Created by chenqf on 2017/12/14.
 * 字典实体类
 */
@Entity()
@Table(name = "SYS_DICT")
public class Dict extends UUIDEntity {

    @Column(name = "CODE")
    private String code;//字典编码

    @Column(name = "NAME")
    private String name;//字典名称

    @Column(name = "PARENT_ID")
    private String parentId;//字典父Id

    @Column(name = "SORT")
    private Integer sort;//排序

    @Column(name = "STATUS")
    private String status;//状态

    @Column(name = "REMARK")
    private String remark;//备注

    @Column(name = "DEL_FLAG")
    private String delFlag;//删除标记

    @Transient
    private List<Map<String,String>> detail;//保存明细用

    @Transient
    private String key;//前端用

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public List<Map<String,String>> getDetail() {
        return detail;
    }

    public void setDetail(List<Map<String,String>> detail) {
        this.detail = detail;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
